package org.hongrun.HIService;



import org.hongrun.HIService.HIServiceImpl.HIServiceFallback;
import org.hongrun.config.OpenFeigenLoggerConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient (name="service-provider-gsh",configuration = OpenFeigenLoggerConfig.class,fallback = HIServiceFallback.class)
public interface HIService {
    @GetMapping("/provider/hello")
    public String hello();

    @GetMapping("/suername")
    public String getUserName(@RequestParam(value = "username",required = false) String username);
}